package epoch.game.core.serialize;

import java.io.IOException;


/**
 * 写入缓冲区接口
 * @author will
 * @date 2016年3月23日 下午8:06:41
 */
public interface IStreamWriter {

	void writeByte(byte value) throws IOException;

	void writeShort(short value) throws IOException;

	void writeInt(int value) throws IOException;

	void writeLong(long value) throws IOException;

	void writeBoolean(boolean value) throws IOException;
	
	void writeFloat(float value) throws IOException;
	
	void writeDouble(double value) throws IOException;

	void writeString(String value) throws IOException;

	void writeObject(ISerializable transObj) throws IOException;
	
	void writeBytes(byte[] bytes) throws IOException;

	void writeChar(char value) throws IOException;
	
	void write(Object value) throws IOException;
}